using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevMajorrepairdetailTList, table list:dev_majorrepairdetail_t 
	/// </summary>
	internal class DevMajorrepairdetailTList : BaseWritableEntities<DevMajorrepairdetailT>, IDevMajorrepairdetailTList
	{
		private DevMajorrepairdetailTQueryDAO _queryDAO;
		private DevMajorrepairdetailTWritingDAO _writeDAO;

		public DevMajorrepairdetailTList(DevMajorrepairdetailTQueryDAO queryDao, DevMajorrepairdetailTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevMajorrepairdetailT,table items:dev_majorrepairdetail_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevMajorrepairdetailT> GetDevMajorrepairdetailTAllItems()
		{
			return _queryDAO.GetDevMajorrepairdetailTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevMajorrepairdetailT,table items:dev_majorrepairdetail_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevMajorrepairdetailT> GetDevMajorrepairdetailTItemsById(int id)
		{
			return _queryDAO.GetDevMajorrepairdetailTItemsById(id);
		}

		/// <summary>
		/// 根据jobId，获取所有DevMajorrepairdetailT,table items:dev_majorrepairdetail_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevMajorrepairdetailT> GetDevMajorrepairdetailTItemsByJobId(int jobId)
		{
			return _queryDAO.GetDevMajorrepairdetailTItemsByJobId(jobId);
		}

		/// <summary>
		/// 增加一行DevMajorrepairdetailT,table item:dev_majorrepairdetail_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevMajorrepairdetailT(DevMajorrepairdetailT item)
		{
			return this._writeDAO.AddDevMajorrepairdetailT(item);
		}

		/// <summary>
		/// 增加多行DevMajorrepairdetailT,table items:dev_majorrepairdetail_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevMajorrepairdetailTs(DevMajorrepairdetailT[] items)
		{
			return this._writeDAO.AddDevMajorrepairdetailTs(items);
		}

		/// <summary>
		/// 更新一行DevMajorrepairdetailT,table item:dev_majorrepairdetail_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevMajorrepairdetailT(DevMajorrepairdetailT item)
		{
			return this._writeDAO.UpdateDevMajorrepairdetailT(item);
		}

		/// <summary>
		///  更新多行DevMajorrepairdetailT,table items:dev_majorrepairdetail_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevMajorrepairdetailTs(DevMajorrepairdetailT[] items)
		{
			return this._writeDAO.UpdateDevMajorrepairdetailTs(items);
		}

		/// <summary>
		/// 删除一行DevMajorrepairdetailT,table item:dev_majorrepairdetail_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevMajorrepairdetailT(DevMajorrepairdetailT item)
		{
			return this._writeDAO.DeleteDevMajorrepairdetailT(item);
		}

		/// <summary>
		///  删除多行DevMajorrepairdetailT,table items:dev_majorrepairdetail_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevMajorrepairdetailTs(DevMajorrepairdetailT[] items)
		{
			return this._writeDAO.DeleteDevMajorrepairdetailTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevMajorrepairdetailT,table entity:dev_majorrepairdetail_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevMajorrepairdetailTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevMajorrepairdetailTByIds(ids);
		}

	}
}
